/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package csm.uttils;

import csm.uttils.windows.CatchUpOptionPane;
import java.awt.Frame;

/**
 *
 * @author Carlos S. Moreno
 */
public class Messages {

   
    public static int showAdminConfirmDialog(Frame parentComponent, Object message)
    {
        return showAdminConfirmDialog(parentComponent, message, "Confirmar");

    }

    public static int showAdminConfirmDialog(Frame parentComponent, Object message, String title)
    {
        CatchUpOptionPane ventana = new CatchUpOptionPane(parentComponent, title, true,message.toString());
        ventana.setLocationRelativeTo(null);
        ventana.setVisible(true);
        int answer = ventana.getAnswer();
        ventana.dispose();
        return answer;
    }
    
}
